package org.vectrics.mail.struts;

import java.util.Map;
import org.apache.log4j.Logger;
import org.vectrics.struts.Request;

/**
 * This template parameter loader does nothing. "sender" and "recipient" are loaded by default
 * and will be the only parameters used if this class is deployed as the TemplateParameterLoader
 * for a particular request.
 * @author Mike Moore
 *
 */
public class DefaultTemplateParameterLoader implements TemplateParameterLoader {
	private Logger log = Logger.getLogger(this.getClass());

	public DefaultTemplateParameterLoader() {
		super();
	}

	public void loadParameters(Request request, Map parameterMap) {
		log.info("Default template parameter loader called - does nothing to load parameters.  Other code loads \"sender\" and \"recipient\" by default");
	}

	public void loadParameterObject(String propertyName, String propertyValue, Map<String, Object> parameterMap) {
	}

	

}
